<div class="top-bar">
    <a href="add-encheres.html" class="button">ADD NEW</a>
    <h1>Gestion des enchères</h1>
    <div class="breadcrumbs"><a href="encheres.html">Enchères</a> / Liste des enchères en cours</div>
</div><br />
<div class="select-bar"></div>
<?php if(!empty($infos)): ?>
    <div class="infos"><img alt="ok" src="/backend_images/ok2.png" /> <?php echo $infos; ?></div>
<?php endif; ?>
<div class="table">
   <img src="../backend_images/bg-th-left.gif" width="8" height="7" alt="" class="left" />
   <img src="../backend_images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
   <table class="listing" cellpadding="0" cellspacing="0">
        <tr>
            <th class="first" width="17">Produit</th>
            <th width="177">Image</th>
            <th width="177">Enchère</th>
            <th>Ordre</th>
            <th>Date de fin</th>
            <th class="last">Actions</th>
        </tr>
        <?php foreach($datalist as $data):  ?>
        <tr>
            <td class="first style1"><?php echo $data->getNom() ?></td>
            <td><a href="enchere-detail-<?php echo $data->getId() ?>.html" title="plus de détail"><img alt="<?php echo $data->getNom()  ?>" src="<?php echo _UPLOAD_DIR_.'encheres/'.array_shift(explode(';',$data->getImages()))  ?>" width="100"/></a></td>
            <td><?php echo $data->getPrix() ?> &euro;</td>
            <td><?php echo $data->getOrdre() ?></td>
            <td><?php echo $data->getDateFin() ?></td>
            <td class="last"><a href="enchere-delete-<?php echo $data->getId() ?>.html" onclick="return(confirm('Êtes-vous sûr?'));"><img src="../backend_images/hr.gif" style="width:16px; height:16px;" alt="Supprimer" /></a> <a href="enchere-edit-<?php echo $data->getId() ?>.html"><img src="../backend_images/edit-icon.gif" style="width:16px; height:16px;" alt="&Eacute;diter" /></a></td>
        </tr>
        <?php endforeach;?>
    </table>
    
    <div class="select">
        <strong><?php if( isset($var) ) echo $var; ?></strong>
    </div>
</div>

